import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/views/login'
import fastSelect from '@/views/fastSelect'
import rule from '@/views/rule'
import personal from '@/views/personal'
import lottery from '@/views/lottery'
import history from '@/views/history'
import fastFight from '@/views/fastFight'
import detail from '@/views/detail'
import daily from '@/views/daily'
import monthly from '@/views/monthly'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
      meta:{
        navbarShow:false
      }
      
    },
    {
      path: '/login',
      name: 'login',
      component: login,
      meta:{
        navbarShow:false
      }
      
    },
    {
      path: '/fastSelect',
      name: 'fastSelect',
      component: fastSelect,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/rule',
      name: 'rule',
      component: rule,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/personal',
      name: 'personal',
      component: personal,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/lottery',
      name: 'lottery',
      component: lottery,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/history',
      name: 'history',
      component: history,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/fastFight',
      name: 'fastFight',
      component: fastFight,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/detail',
      name: 'detail',
      component: detail,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/daily',
      name: 'daily',
      component: daily,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
    {
      path: '/monthly',
      name: 'monthly',
      component: monthly,
      meta:{
        navbarShow:true,
        requireAuth:true,
      }
    },
  ]
})
